<!--{*--><link href="../css/gallery.css" rel="stylesheet" type="text/css" /><!--*}-->

<div class="search-form">
<form method="post" action="images-search.php" name="images-livesearch" id="images-livesearch-form">
	<div class="search-bar">
		<input type="text" name="search_images" value="{$search_images}" id="search_images" />
		<input type="submit" name="search-button" value="Search" class="submit" />
		multi-words match: eg. 
		<strong>table<span style="color:#FF0000">/</span>smile</strong>,
		<strong>fruit<span style="color:#FF0000">/</span>winter</strong>
		(slash or comma separated)
	</div>
	<div id="livesearch-results"></div>
</form>
</div>

<div class="clear" style="clear:both;"></div>

<div class="top-action">
	<ul class="links">
		<li class="record-scan"><a href="#">Re-Scan</a></li>
		<li class="record-add"><a href="images-add.php">Add Images</a></li>
		<li class="record-list"><a href="images-list.php">List Images</a></li>
	</ul>
</div>

<div class="clear" style="clear:both; margin-bottom:20px;"></div>

{if $imagess|count}

<form id="images-list-form" name="images-list-form" method="post" action="images-blockaction.php">

<link href="css/gallery-admin.css" rel="stylesheet" type="text/css">
<!--{*--><link href="../css/gallery-admin.css" rel="stylesheet" type="text/css"><!--*}-->
<div class="image-gallery">
{section name='l' loop=$imagess}
  <div class="image-unit">
    <h2 class="image-title {$imagess[l].is_approved}"><a href="images-details-public.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}">{$imagess[l].image_caption|default:#DEFAULT_IMAGE_CAPTION#}</a></h2>
    <div class="image-holder">
      <p class="image-frame">
	  	<img src="image/{'THUMBNAIL_HOMEPAGE_SIZE_ID'|constant}/{$imagess[l].image_id}.jpg" alt="" title="">
		<!--{*<img src="images-preview.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}&amp;thumbnail=true" alt="" title="">*}-->		
	</p>
      <div class="image-description">
        <div class="image-readout">
			{$imagess[l].image_description_short|default:#DEFAULT_IMAGE_DESCRIPTION#}
			<p>{$imagess[l].dimension_width}x{$imagess[l].dimension_height}@{$imagess[l].filesize_bytes|n}</p>
			<p>
				<a href="image/{'THUMBNAIL_HOMEPAGE_SIZE_ID'|constant}/{$imagess[l].image_id}.jpg">
					<img src="images/selected-icons/search.png" class="icon" alt="" title="" /> Preview
				</a> |
				<a href="albums-coverimage.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}">Cover</a>
			</p>
			<p>
				{$imagess[l].in_bannerimage|yn} <a href="images-flag.php?flag=in_bannerimage&amp;id={$imagess[l].image_id}&amp;code={$imagess[l].code}">Banner</a>
			</p>
			<p>
				<a href="images-flag.php?flag=is_approved&amp;id={$imagess[l].image_id}&amp;code={$imagess[l].code}">{$imagess[l].is_approved|yn} Approved</a> | 
				<a href="images-flag.php?flag=is_featured&amp;id={$imagess[l].image_id}&amp;code={$imagess[l].code}">{$imagess[l].is_featured|yn} Featured?</a>
			</p>
			<p>
				<img src="images/selected-icons/delete.png" class="icon" alt="" title="" />
				<a href="images-delete.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}" class="image-link" onclick="return(window.confirm('Remove?'));">Delete</a> | 
				<a href="images-flag.php?flag=is_finished&amp;id={$imagess[l].image_id}&amp;code={$imagess[l].code}">{$imagess[l].is_finished|yn} Completed?</a>
			</p>
		</div>
        <div class="image-links" style="margin-top:-15px;">
			<a href="images-details.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}" class="image-link">Details, <strong>{$imagess[l].impressions_counter}</strong> views</a>
		</div>
      </div>
    </div>
	<div class="admin-options">
	<input type="checkbox" name="images[]" value="{$imagess[l].image_id}" />
	<a href="images-flag.php?flag=is_approved&amp;id={$imagess[l].image_id}&amp;code={$imagess[l].code}">{$imagess[l].is_approved|yn}</a>
	<a href="images-edit.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}" class="image-link">Edit</a> |
	<a href="images-details.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}" class="image-link">Details</a> |
	<a href="image.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}" class="image-link">Public</a>
	<!--
	<a href="images-delete.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}" class="image-link" onclick="return(window.confirm('Remove?'));">Delete</a>
		<a href="images-delete.php?id={$imagess[l].image_id}&amp;code={$imagess[l].code}" class="image-link" onclick="return(window.confirm('Remove?'));">Delete</a>
	-->
	</div>
  </div>
{/section}
</div>
<div class="clear" style="clear:both;"></div>
<script type="text/javascript" src="js/gallery-admin.js"></script>
<!--[if lt IE 9]>
	<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<div class="block-actions">
	<label style="display:inline;"><input type="checkbox" id="images-checkall" name="checkallentities" value="checkallentities" tabindex="0" /> Check all and, </label>
	With selected records, <input type="hidden" name="action" value="nothing" />
	<select name="actions" id="actions">
		<option value="">-- Choose --</option>
		<option value="enable">Enable</option>
		<option value="disable">Disable</option>
		<option value="delete" style="background-color:#FF0000;">DELETE PERMANENTLY</option>
		<option value="nothing" selected="selected">Do Nothing</option>
	</select>
	<input type="submit" name="submit-button" id="submit-button" value="Perform!" />
</div>

</form>

<!-- paginator -->
{if $pagination->has_pages()}
<div class="paginator">
	<span class="introduction">Jump to page: </span>
	{paginate separator=' ' ulli=false source=$pagination}
</div>
{/if}

<!-- Javascript Handlers, Ajax, and Validators -->
{js src='ajax.js'}
{js src='validators/images/list.js' validator=true}

{else}
	<div class="nodata">You do not have any records here.</div>
{/if}

<!-- End of images List -->